import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'


Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(axios)

global.Buffer = global.Buffer || require('buffer').Buffer


import mqtt from './mqtt'
import { Axis } from 'echarts'
Vue.prototype.$mqtt = mqtt
Vue.prototype.$axios = axios


new Vue({
  router,
  store,
  render: function (h) { return h(App) }
}).$mount('#app')
